server {
    listen 80;
    server_name www.tgame.com
	index index.html index.php;
	
    root D:\\www\\html\\zhuji;

    #ssi on;
	proxy_set_header Accept-Encoding '';
	proxy_set_header Host $host;
	proxy_set_header   X-Real-IP  $remote_addr;
	proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
	
	location /{
	    index index.html index.php;
	    if (!-e $request_filename) {
	    	rewrite ^/(.*)$ /index.php?$1 last;
	    	break;
	    }
	}
	
	location ~* ^/index\.php?$ {
    	fastcgi_pass   127.0.0.1:9000;
    	fastcgi_index  index.php;
    	fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
    	include        fastcgi_params;
	}
	location ~* ^/manage/index\.php?$ {
    	fastcgi_pass   127.0.0.1:9000;
    	fastcgi_index  index.php;
    	fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
    	include        fastcgi_params;
	}
	
	

    location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ {
        expires      15d;
        access_log off;
    }

    location ~ .*\.(js|css)?$ {
        expires      1d;
        access_log off;
    }
}